package Extends;

public class Person {
    String name;
    int age;
    int id=1001;
    public Person(){

    }
    public Person(String name) {
        this.name = name;
    }
    public Person(int age) {
        this.age = age;
    }
    public Person(String name,int age){
        this(name);
        this.age=age;
    }
    public void eat(){
        System.out.println("人吃饭");
    }
    public void walk(){
        System.out.println("人走路");
    }
}
